package com.ktwlsoft.archivemanage.payload.security;

import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

import javax.validation.constraints.NotBlank;

@Setter
@Getter
public class LoginRequest {

    @ApiModelProperty("用户或者手机号")
    @NotBlank
    private String usernameOrPhone;

    @NotBlank
    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("是否pc登录")
    private boolean pc = true;

    @ApiModelProperty("类型")
    private Type type;

    @ApiModelProperty("验证码")
    private String verificationCode;

    @ApiModelProperty("验证码标识")
    private String verificationId;

    public enum Type{
        /**管理端*/
        ADMIN,
        /**子系统*/
        SUB_SYSTEM
    }
}
